package com.hhl.test01.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.hhl.entity.User2;

public interface UserMapper01 {
	@Select("SELECT * FROM USER WHERE NAME = #{name}")
	User2 findByName(@Param("name") String name);
	
	
	@Insert("INSERT INTO USER(NAME, AGE) VALUES(#{name}, #{age})")
	int insert(@Param("name") String name, @Param("age") Integer age);
}
